package com.hooper.service;

import com.hooper.common.PageResult;
import com.hooper.model.system.SysUser;
import com.hooper.model.vo.LoginVo;
import com.hooper.model.vo.SysUserQueryVo;

import java.util.List;
import java.util.Map;

/**
 * @author Tim Hooper
 * @version 1.0
 * @time 2023/04/01/16:00
 */
public interface SysUserService {
    List<SysUser> getAllRoles();

    PageResult<SysUser> pageByConditions(int currentPage, int pageSize, SysUserQueryVo queryVo);

    void saveUser(SysUser user);

    void updateUserById(SysUser newRole);

    void delUserById(Long id);

    void delBatchByIds(List<Long> ids);

    SysUser getById(Long id);

    void changeUserStatus(Long id, Integer status);

    String login(LoginVo loginVo);


    Map<String, Object> getUserInfo(Long userId);
}
